package com.hoyue.dao;

import com.hoyue.bean.User;

import java.sql.SQLException;

/**
 * @author Hoyue_network1
 * @version 1.0
 * Creat by 2018/8/23 17:36
 */
public interface UserDao {
	/**
	 * 用户登录
	 * @param userName
	 * @param password
	 * @return UserBean
	 * @throws SQLException
	 */
	User loginUser(String userName, String password) throws SQLException;

	/**
	 * 更新管理员
	 * @param user
	 * @throws SQLException
	 */
	void update(User user) throws SQLException;

	void xiuGaiPsw(int id, String psw) throws SQLException;
}
